package com.mapforge.selection;

import java.util.HashSet;
import java.util.Iterator;

public class DiscontinuousSelectionSet extends
		DiscontinuousSelectionCollection {

	public DiscontinuousSelectionSet() {
		super(new HashSet<ComparablePoint>());
	}

	@Override
	public Object clone() {
		DiscontinuousSelectionSet hash = new DiscontinuousSelectionSet();
		Iterator<ComparablePoint> it = this.iterator();
		while (it.hasNext()) {
			hash.addPoint(it.next());
		}
		return hash;
	}

}
